Optimal. Leaf size=97 \[ \frac {2 a+b (d+e x)^2}{2 e \left (b^2-4 a c\right ) \left (a+b (d+e x)^2+c (d+e x)^4\right )}-\frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{e \left (b^2-4 a c\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1142, 1114, 638, 618, 206} \[ \frac {2 a+b (d+e x)^2}{2 e \left (b^2-4 a c\right ) \left (a+b (d+e x)^2+c (d+e x)^4\right )}-\frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{e \left (b^2-4 a c\right )^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 618
Rule 638
Rule 1114
Rule 1142
Rubi steps
\begin {align*} \int \frac {(d+e x)^3}{\left (a+b (d+e x)^2+c (d+e x)^4\right )^2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^3}{\left (a+b x^2+c x^4\right )^2} \, dx,x,d+e x\right )}{e}\\ &=\frac {\operatorname {Subst}\left (\int \frac {x}{\left (a+b x+c x^2\right )^2} \, dx,x,(d+e x)^2\right )}{2 e}\\ &=\frac {2 a+b (d+e x)^2}{2 \left (b^2-4 a c\right ) e \left (a+b (d+e x)^2+c (d+e x)^4\right )}+\frac {b \operatorname {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,(d+e x)^2\right )}{2 \left (b^2-4 a c\right ) e}\\ &=\frac {2 a+b (d+e x)^2}{2 \left (b^2-4 a c\right ) e \left (a+b (d+e x)^2+c (d+e x)^4\right )}-\frac {b \operatorname {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c (d+e x)^2\right )}{\left (b^2-4 a c\right ) e}\\ &=\frac {2 a+b (d+e x)^2}{2 \left (b^2-4 a c\right ) e \left (a+b (d+e x)^2+c (d+e x)^4\right )}-\frac {b \tanh ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {b^2-4 a c}}\right )}{\left (b^2-4 a c\right )^{3/2} e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 100, normalized size = 1.03 \[ \frac {\frac {2 a+b (d+e x)^2}{\left (b^2-4 a c\right ) \left (a+(d+e x)^2 \left (b+c (d+e x)^2\right )\right )}-\frac {2 b \tan ^{-1}\left (\frac {b+2 c (d+e x)^2}{\sqrt {4 a c-b^2}}\right )}{\left (4 a c-b^2\right )^{3/2}}}{2 e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.92, size = 1021, normalized size = 10.53 \[ \left [\frac {{\left (b^{3} - 4 \, a b c\right )} e^{2} x^{2} + 2 \, {\left (b^{3} - 4 \, a b c\right )} d e x + 2 \, a b^{2} - 8 \, a^{2} c + {\left (b^{3} - 4 \, a b c\right )} d^{2} - {\left (b c e^{4} x^{4} + 4 \, b c d e^{3} x^{3} + b c d^{4} + {\left (6 \, b c d^{2} + b^{2}\right )} e^{2} x^{2} + b^{2} d^{2} + 2 \, {\left (2 \, b c d^{3} + b^{2} d\right )} e x + a b\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} e^{4} x^{4} + 8 \, c^{2} d e^{3} x^{3} + 2 \, c^{2} d^{4} + 2 \, {\left (6 \, c^{2} d^{2} + b c\right )} e^{2} x^{2} + 2 \, b c d^{2} + 4 \, {\left (2 \, c^{2} d^{3} + b c d\right )} e x + b^{2} - 2 \, a c + {\left (2 \, c e^{2} x^{2} + 4 \, c d e x + 2 \, c d^{2} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c e^{4} x^{4} + 4 \, c d e^{3} x^{3} + c d^{4} + {\left (6 \, c d^{2} + b\right )} e^{2} x^{2} + b d^{2} + 2 \, {\left (2 \, c d^{3} + b d\right )} e x + a}\right )}{2 \, {\left ({\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} e^{5} x^{4} + 4 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d e^{4} x^{3} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2} + 6 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{2}\right )} e^{3} x^{2} + 2 \, {\left (2 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{3} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d\right )} e^{2} x + {\left (a b^{4} - 8 \, a^{2} b^{2} c + 16 \, a^{3} c^{2} + {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{4} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d^{2}\right )} e\right )}}, \frac {{\left (b^{3} - 4 \, a b c\right )} e^{2} x^{2} + 2 \, {\left (b^{3} - 4 \, a b c\right )} d e x + 2 \, a b^{2} - 8 \, a^{2} c + {\left (b^{3} - 4 \, a b c\right )} d^{2} - 2 \, {\left (b c e^{4} x^{4} + 4 \, b c d e^{3} x^{3} + b c d^{4} + {\left (6 \, b c d^{2} + b^{2}\right )} e^{2} x^{2} + b^{2} d^{2} + 2 \, {\left (2 \, b c d^{3} + b^{2} d\right )} e x + a b\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {{\left (2 \, c e^{2} x^{2} + 4 \, c d e x + 2 \, c d^{2} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right )}{2 \, {\left ({\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} e^{5} x^{4} + 4 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d e^{4} x^{3} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2} + 6 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{2}\right )} e^{3} x^{2} + 2 \, {\left (2 \, {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{3} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d\right )} e^{2} x + {\left (a b^{4} - 8 \, a^{2} b^{2} c + 16 \, a^{3} c^{2} + {\left (b^{4} c - 8 \, a b^{2} c^{2} + 16 \, a^{2} c^{3}\right )} d^{4} + {\left (b^{5} - 8 \, a b^{3} c + 16 \, a^{2} b c^{2}\right )} d^{2}\right )} e\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.57, size = 171, normalized size = 1.76 \[ \frac {b \arctan \left (\frac {2 \, c d^{2} + 2 \, {\left (x^{2} e + 2 \, d x\right )} c e + b}{\sqrt {-b^{2} + 4 \, a c}}\right ) e^{\left (-1\right )}}{{\left (b^{2} - 4 \, a c\right )} \sqrt {-b^{2} + 4 \, a c}} + \frac {b d^{2} + {\left (x^{2} e + 2 \, d x\right )} b e + 2 \, a}{2 \, {\left (c d^{4} + 2 \, {\left (x^{2} e + 2 \, d x\right )} c d^{2} e + {\left (x^{2} e + 2 \, d x\right )}^{2} c e^{2} + b d^{2} + {\left (x^{2} e + 2 \, d x\right )} b e + a\right )} {\left (b^{2} e - 4 \, a c e\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.02, size = 276, normalized size = 2.85 \[ \frac {b \left (-\RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right ) e -d \right ) \ln \left (-\RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+x \right )}{2 \left (4 a c -b^{2}\right ) e \left (2 c \,e^{3} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )^{3}+6 c d \,e^{2} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )^{2}+6 e c \,d^{2} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+2 c \,d^{3}+b e \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+b d \right )}+\frac {-\frac {b e \,x^{2}}{2 \left (4 a c -b^{2}\right )}-\frac {b d x}{4 a c -b^{2}}-\frac {b \,d^{2}+2 a}{2 \left (4 a c -b^{2}\right ) e}}{c \,e^{4} x^{4}+4 c d \,e^{3} x^{3}+6 c \,d^{2} e^{2} x^{2}+4 c \,d^{3} e x +b \,e^{2} x^{2}+c \,d^{4}+2 b d e x +b \,d^{2}+a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -b \int -\frac {e x + d}{{\left (b^{2} c - 4 \, a c^{2}\right )} e^{4} x^{4} + 4 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d e^{3} x^{3} + {\left (b^{2} c - 4 \, a c^{2}\right )} d^{4} + {\left (b^{3} - 4 \, a b c + 6 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2}\right )} e^{2} x^{2} + a b^{2} - 4 \, a^{2} c + {\left (b^{3} - 4 \, a b c\right )} d^{2} + 2 \, {\left (2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{3} + {\left (b^{3} - 4 \, a b c\right )} d\right )} e x}\,{d x} + \frac {b e^{2} x^{2} + 2 \, b d e x + b d^{2} + 2 \, a}{2 \, {\left ({\left (b^{2} c - 4 \, a c^{2}\right )} e^{5} x^{4} + 4 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d e^{4} x^{3} + {\left (b^{3} - 4 \, a b c + 6 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{2}\right )} e^{3} x^{2} + 2 \, {\left (2 \, {\left (b^{2} c - 4 \, a c^{2}\right )} d^{3} + {\left (b^{3} - 4 \, a b c\right )} d\right )} e^{2} x + {\left ({\left (b^{2} c - 4 \, a c^{2}\right )} d^{4} + a b^{2} - 4 \, a^{2} c + {\left (b^{3} - 4 \, a b c\right )} d^{2}\right )} e\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.77, size = 427, normalized size = 4.40 \[ \frac {b\,\mathrm {atan}\left (\frac {{\left (4\,a\,c-b^2\right )}^4\,\left (x\,\left (\frac {b^3\,\left (2\,b^3\,c^2\,d\,e^9-8\,a\,b\,c^3\,d\,e^9\right )}{a\,e^2\,{\left (4\,a\,c-b^2\right )}^{11/2}}-\frac {2\,b^2\,c^2\,d\,e^7}{a\,{\left (4\,a\,c-b^2\right )}^{7/2}}\right )+x^2\,\left (\frac {b^3\,\left (2\,b^3\,c^2\,e^{10}-8\,a\,b\,c^3\,e^{10}\right )}{2\,a\,e^2\,{\left (4\,a\,c-b^2\right )}^{11/2}}-\frac {b^2\,c^2\,e^8}{a\,{\left (4\,a\,c-b^2\right )}^{7/2}}\right )-\frac {b^3\,\left (16\,a^2\,c^3\,e^8-4\,a\,b^2\,c^2\,e^8+8\,a\,b\,c^3\,d^2\,e^8-2\,b^3\,c^2\,d^2\,e^8\right )}{2\,a\,e^2\,{\left (4\,a\,c-b^2\right )}^{11/2}}-\frac {b^2\,c^2\,d^2\,e^6}{a\,{\left (4\,a\,c-b^2\right )}^{7/2}}\right )}{2\,b^2\,c^2\,e^6}\right )}{e\,{\left (4\,a\,c-b^2\right )}^{3/2}}-\frac {\frac {b\,d^2+2\,a}{2\,e\,\left (4\,a\,c-b^2\right )}+\frac {b\,e\,x^2}{2\,\left (4\,a\,c-b^2\right )}+\frac {b\,d\,x}{4\,a\,c-b^2}}{a+x^2\,\left (6\,c\,d^2\,e^2+b\,e^2\right )+b\,d^2+c\,d^4+x\,\left (4\,c\,e\,d^3+2\,b\,e\,d\right )+c\,e^4\,x^4+4\,c\,d\,e^3\,x^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 4.88, size = 495, normalized size = 5.10 \[ \frac {b \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} \log {\left (\frac {2 d x}{e} + x^{2} + \frac {- 16 a^{2} b c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + 8 a b^{3} c \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} - b^{5} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b^{2} + 2 b c d^{2}}{2 b c e^{2}} \right )}}{2 e} - \frac {b \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} \log {\left (\frac {2 d x}{e} + x^{2} + \frac {16 a^{2} b c^{2} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} - 8 a b^{3} c \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b^{5} \sqrt {- \frac {1}{\left (4 a c - b^{2}\right )^{3}}} + b^{2} + 2 b c d^{2}}{2 b c e^{2}} \right )}}{2 e} + \frac {- 2 a - b d^{2} - 2 b d e x - b e^{2} x^{2}}{8 a^{2} c e - 2 a b^{2} e + 8 a b c d^{2} e + 8 a c^{2} d^{4} e - 2 b^{3} d^{2} e - 2 b^{2} c d^{4} e + x^{4} \left (8 a c^{2} e^{5} - 2 b^{2} c e^{5}\right ) + x^{3} \left (32 a c^{2} d e^{4} - 8 b^{2} c d e^{4}\right ) + x^{2} \left (8 a b c e^{3} + 48 a c^{2} d^{2} e^{3} - 2 b^{3} e^{3} - 12 b^{2} c d^{2} e^{3}\right ) + x \left (16 a b c d e^{2} + 32 a c^{2} d^{3} e^{2} - 4 b^{3} d e^{2} - 8 b^{2} c d^{3} e^{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________